const state = () => {
    list: []
}

const mutations = {
    SET_LIST(state, arr) {
        state.list = arr
    }
}

const actions = {
    async getList(state, axios) {
        let { data } = await axios.get("http://localhost:3001/users/user-list")
        state.commit("SET_LIST", data.data)
    }
}

const getters = {

}

export {
    state,
    mutations,
    actions,
    getters
}